package com.mccrea.pattern.flyweight;

/**
 * @author mccrea
 * @version 1.0
 * @description:
 * @date 2021/5/12 21:14
 */
public class ConcreteWebSite  extends WebSite {
    /**
     * @description: 网站发布类型(内部状态)
     * @author mccrea
     * @date 2021/5/12 21:15
     * @version 1.0
     */
    private String type;

    public ConcreteWebSite(String type) {
        this.type = type;
    }

    @Override
    public void use(WebSiteUser user) {
        System.out.println(user.getName() + " 网站的发布形式为： " + type);
    }
}
